package com.example.hw2.service.impl;

import com.example.hw2.dao.StudentRepository;
import com.example.hw2.entity.Student;
import com.example.hw2.service.InterStudent;
import org.springframework.beans.factory.annotation.Autowired;

public class StudentService implements InterStudent {
    @Autowired
    private StudentRepository studentRepository;
    @Override
    public boolean add(Student student) {
        System.out.println("test: "+student.toString());
        studentRepository.save(student);
        return true;
    }
}
